<HTML> 
<HEAD> 
	<TITLE>3rd Party ROBOTC Drivers</TITLE> 
<link href="tabs.css" rel="stylesheet" type="text/css"/> 
<link href="doxygen.css" rel="stylesheet" type="text/css"/> 
</HEAD> 
 
<BODY bgcolor="#ffffff" link="#000000" vlink="#000000"> 
<table width="100%" bgcolor="navy" cellspacing=0 cellpadding=1 border=0> 
<tr><td><table width="100%" bgcolor="#EEEEDD" cellspacing=0 cellpadding=3 border=0> 
<tr> 
    <td width="33%" align="left"> <img src="images/LOGO_NXT.gif" width=266 height=44 border="0" alt="Mindstorms"></td> 
    <td><b><font size="+3" color="navy">3rd Party ROBOTC Drivers</font></b></td> 
    <td align="right"> <img src="images/logo.png" width=44 height=44 border="0" alt="RobotC"></td>     
</tr> 
  <tr bgcolor="#cccc99" align="right"> 
          <td colspan=3> <font face="arial" size="-1"> [<a href=main.html>Home</a>] [<a target=_top href="https://sourceforge.net/projects/rdpartyrobotcdr/">Download</a>] [<a target=_top href="http://apps.sourceforge.net/mantisbt/rdpartyrobotcdr/my_view_page.php">Submit a bug/suggestion</a>]  [<a target=_top href="http://www.robotc.net/forums/">ROBOTC Forums</a>] [<a target=_top href="http://botbench.com">Blog</a>] [<a target=_top href="http://sourceforge.net/donate/index.php?group_id=257238">Support this project</a>]</font> </td> 
</tr> 
</table></td></tr> 
</table> 
<!-- Generated by Doxygen 1.7.2 -->
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<h1>microchip-mcp23008.h File Reference</h1>  </div>
</div>
<div class="contents">

<p>Microchip MCP23008 driver.  
<a href="#_details">More...</a></p>
<code>#include &quot;<a class="el" href="common_8h_source.html">common.h</a>&quot;</code><br/>

<p><a href="microchip-mcp23008_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga8a33d4282df2429f6736aeb043cab6c5">MCP_REG_IODIR</a>&#160;&#160;&#160;0x00</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga6435c71cc8eb951b14a25a55d4102697">MCP_REG_IPOL</a>&#160;&#160;&#160;0x01</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga90bb931e62804ca37a9300703b8fe75e">MCP_REG_GPINTEN</a>&#160;&#160;&#160;0x02</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga59da75802972a30b8dd75a678e43f988">MCP_REG_DEFVAL</a>&#160;&#160;&#160;0x03</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga9647b2f02fbd71c71177d83e8db88b2a">MCP_REG_INTCON</a>&#160;&#160;&#160;0x04</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga76ffe77fa99ee9675336a8f6812d124a">MCP_REG_IOCON</a>&#160;&#160;&#160;0x05</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga576054b61423489bfa1b5a599ab521bc">MCP_REG_GPPU</a>&#160;&#160;&#160;0x06</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga9c0db6a32ad0833a12b05312837fc3fd">MCP_REG_INTF</a>&#160;&#160;&#160;0x07</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga965a6db7b4c0ec6a19cf3ab9bdcb3b2a">MCP_REG_INTCAP</a>&#160;&#160;&#160;0x08</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga0873e9ed25390d2cc32998efbac19a23">MCP_REG_GPIO</a>&#160;&#160;&#160;0x09</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga7523742d1d87a4a3c410485bba665bd9">MCP_REG_OLAT</a>&#160;&#160;&#160;0x0A</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga741f6d111c68ddee08f95e23bf74cf3e">MCP_BIT_INTPOL</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#gad1c578e55e56fa66b82ffa726141cdfb">MCP_BIT_ODR</a>&#160;&#160;&#160;2</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga4d3aa537847f37d3f80dba5147807212">MCP_BIT_DISSLW</a>&#160;&#160;&#160;4</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#gae3c89839afc29359f68416f791b3e707">MCP_BIT_SREAD</a>&#160;&#160;&#160;5</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga7e4e83c51ea9e2aad0bbdaa7d39e6463">MCP_I2C_ADDR</a>&#160;&#160;&#160;0x40</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga5bea4888063c481ee89a47abe6211ab3">MCP23008setupIO</a> (tSensors link, byte addr, byte mask, byte pullup)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#gad1082dc1a96d405bb833c9e9912ec355">MCP23008setupIO</a> (tSensors link, byte addr, byte mask)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#gad2da8e6ba343f03f7ce6d13c821eeeab">MCP23008readIO</a> (tSensors link, byte addr, byte mask)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#gaa7cbe31bfad78367488c4b7164fd1af4">MCP23008readIO</a> (tSensors link, byte addr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga547108b4d7f95d317b6a65e7db21f69c">MCP23008writeIO</a> (tSensors link, byte addr, byte mask)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga47779249fa3f6245b2877777ce81ad92">MCP23008writeReg</a> (tSensors link, byte addr, byte reg, byte data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga93b8b8f3f7cb7ba07266c5bade314006">MCP23008readReg</a> (tSensors link, byte addr, byte reg)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#ga9d075a08bd8b8baaabc6e75af1e7d724">MCP23008_I2CRequest</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mcp23008.html#gad56219cc18e4ef2255889090157ce182">MCP23008_I2CReply</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Microchip MCP23008 driver. </p>
<p><a class="el" href="microchip-mcp23008_8h.html" title="Microchip MCP23008 driver.">microchip-mcp23008.h</a> provides an API for the MCP23008 8 port IO expander.</p>
<p>Changelog:</p>
<ul>
<li>0.3 Rewrite to make use of standard <a class="el" href="common_8h.html" title="Commonly used functions used by drivers.">common.h</a> framework.</li>
<li>0.4 Renamed functions to be inline with new naming standard</li>
</ul>
<p>License: You may use this code as you wish, provided you give credit where it's due.</p>
<p>THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Xander Soldaat </dd></dl>
<dl class="date"><dt><b>Date:</b></dt><dd>18 June 2009 </dd></dl>
<dl class="version"><dt><b>Version:</b></dt><dd>0.4 </dd></dl>

<p>Definition in file <a class="el" href="microchip-mcp23008_8h_source.html">microchip-mcp23008.h</a>.</p>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Mar 13 2013 19:56:43 for ROBOTC Drivers by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
